﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SPanicBuyPlayerRecordMsg extends IMessageBase
    {
        public var shopCode:int;
        public var version:int;
        public var records:Dictionary;
        public const _type:int = 15077;
        public static var _regist:SPanicBuyPlayerRecordMsg = new SPanicBuyPlayerRecordMsg(true);

        public function SPanicBuyPlayerRecordMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPanicBuyPlayerRecordMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.shopCode);
            param1.writeInt(this.version);
            DictSPanicBuyPlayerRecordHelper.write(param1, this.records);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.shopCode = param1.readInt();
            this.version = param1.readInt();
            this.records = DictSPanicBuyPlayerRecordHelper.read(param1);
            return;
        }// end function

    }
}
